From 015bf99816969cff366e201169e6c54fd8b3cf3d Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Sat, 7 Feb 2015 20:05:18 +0000 Subject: [PATCH] gtk: x: fix compilation without x11 backend https://bugzilla.gnome.org/show_bug.cgi?id=744148 --- gtk/gtkx-autocleanups.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk/gtkx-autocleanups.h b/gtk/gtkx-autocleanups.h index 3705ff4564..bc200a0207 100644 --- a/gtk/gtkx-autocleanups.h +++ b/gtk/gtkx-autocleanups.h @@ -19,9 +19,13 @@ #error "Only can be included directly." #endif +#ifdef GDK_WINDOWING_X11 + #ifndef __GI_SCANNER__ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkSocket, g_object_unref) G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkPlug, g_object_unref) #endif + +#endif -- 2.30.2